//
//  MoveCell.m
//  Mtime
//
//  Created by 凉气的Mac on 16/8/21.
//  Copyright © 2016年 凉气的Mac. All rights reserved.
//

#import "MoveCell.h"

@interface MoveCell ()


@property (weak, nonatomic) IBOutlet UIButton *buyTicketBtn;


@end

@implementation MoveCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    self.buyTicketBtn.layer.cornerRadius = 10;
    
    self.buyTicketBtn.clipsToBounds = YES;
    
    NSArray *colorArray = @[[UIColor orangeColor],[UIColor greenColor]];
    
    NSArray *titleArray = @[@"购票",@"预售"];
    
    int index = arc4random_uniform(2);
    
    [self.buyTicketBtn setBackgroundColor:colorArray[index]];
    
    [self.buyTicketBtn setTitle:titleArray[index] forState:UIControlStateNormal];
    
}

@end
